<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        var arr = ['red','green','blue'];
        for (var i = 0;i < 3;i++){
            console.log(arr[i]);
        }
    </script>
</head>
<body>

</body>
</html>